-
-
Notifications
You must be signed in to change notification settings - Fork 27
v7.0.0 #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* tmp push * Plugin + Server refactor, minus tests * import fix * First server test fix * Export fix * minor fixes * Connection message fix * Corrected APP_INITIALIZATION message * progress * Fixed information passing * progress * Fixed external triggering * progress * progress * Fixed socket emitting * TS fixes * progress * progress * progress * progress * progress * progress * conn fixes * fix: 🐛 console log * progress --------- Co-authored-by: Kacper Skawina <[email protected]> Co-authored-by: Maciej Pyrc <[email protected]>
prc5
added a commit
that referenced
this pull request
Jun 25, 2025
🎉 This PR is included in version 7.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: 🎸 New version of Hyper Fetch
BREAKING CHANGE: 🧨 Changes in the internal APIS, changes in the generic types for the requests
TODOS:
eventData
anddata
- example: cache eventsHyperFetch v7.0.0 Release Notes
This is a major release that brings a completely revamped developer experience, a new plugin system, and a host of other
improvements and breaking changes. The entire library has been modernized to provide a more robust and flexible
data-fetching solution.
✨ Highlights
🚀 Hyper Flow: The New DevTools
We are thrilled to introduce Hyper Flow, a brand-new, standalone Electron application that provides a powerful and
intuitive UI for debugging and visualizing your HyperFetch requests.
🔌 New Plugin System
HyperFetch now has a powerful plugin system that allows you to extend its functionality. The first official plugin is
@hyper-fetch/plugin-devtools
, which connects your application to the new Hyper Flow DevTools.ESLint Plugin
A new ESLint plugin (
@hyper-fetch/eslint-plugin-hyper-fetch
) is now available to help you enforce best practices andavoid common pitfalls when using HyperFetch.
🧪 Testing Module
The new
@hyper-fetch/testing
module makes it easier than ever to test your data-fetching logic. It providesout-of-the-box mocking for:
💥 Breaking Changes
This release introduces several breaking changes. Please review them carefully before upgrading.
Core (
@hyper-fetch/core
)new Client()
constructor is deprecated. Use the newcreateClient()
function instead.client.createRequest()
method to build your requests. This new method provides improved type inferenceand a more fluent API.
strict
mode. This may cause type errors inyour existing codebase if you are not using strict mode.
users, but it's a significant internal update.
performance and reliability.
cacheTime
andstaleTime
: We've introducedcacheTime
andstaleTime
options for more granular control overcaching, similar to what you might know from other data-fetching libraries.
@hyper-fetch/core
package. You no longerneed to install a separate adapter for basic HTTP requests.
React (
@hyper-fetch/react
)useFetch
,useSubmit
, etc.) have been refactored. While the core functionalityremains the same, there might be subtle changes in behavior and return values.
Provider
: TheConfigProvider
has been renamed toHyperFetchProvider
for clarity.Sockets (
@hyper-fetch/sockets
)@hyper-fetch/socket-adapter-sse
for Server-Sent Events.@hyper-fetch/socket-adapter-ws
for WebSockets.Adapters (
@hyper-fetch/adapter-*
)axios
,firebase
,firebase-admin
,graphql
) have been updated to be compatible with the new corechanges. You will need to update them to their latest versions.
Build System
system is configured to handle ESM packages.
📦 New Packages
@hyper-fetch/hyper-flow
: The new DevTools application.@hyper-fetch/plugin-devtools
: The plugin to connect your app to Hyper Flow.@hyper-fetch/eslint-plugin-hyper-fetch
: The new ESLint plugin.@hyper-fetch/testing
: The new testing module.Upgrading
To upgrade to v6.0.0, you will need to update all the HyperFetch packages you are using to their latest versions.
npm install @hyper-fetch/core@latest @hyper-fetch/react@latest ... # or yarn add @hyper-fetch/core@latest @hyper-fetch/react@latest ...
We recommend carefully reviewing the updated documentation and examples to understand how to adapt your code to the new
APIs.